/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define KEY2_Pin GPIO_PIN_13
#define KEY2_GPIO_Port GPIOC
#define KEY2_EXTI_IRQn EXTI15_10_IRQn
#define EnvTemp_Pin GPIO_PIN_0
#define EnvTemp_GPIO_Port GPIOC
#define LED1_Pin GPIO_PIN_2
#define LED1_GPIO_Port GPIOC
#define LED2_Pin GPIO_PIN_3
#define LED2_GPIO_Port GPIOC
#define KEY1_Pin GPIO_PIN_0
#define KEY1_GPIO_Port GPIOA
#define KEY1_EXTI_IRQn EXTI0_IRQn
#define ILI9341_CS_Pin GPIO_PIN_4
#define ILI9341_CS_GPIO_Port GPIOC
#define ILI9341_RD_Pin GPIO_PIN_5
#define ILI9341_RD_GPIO_Port GPIOC
#define LCD_DB00_Pin GPIO_PIN_0
#define LCD_DB00_GPIO_Port GPIOB
#define LCD_DB01_Pin GPIO_PIN_1
#define LCD_DB01_GPIO_Port GPIOB
#define LCD_DB02_Pin GPIO_PIN_2
#define LCD_DB02_GPIO_Port GPIOB
#define LCD_DB10_Pin GPIO_PIN_10
#define LCD_DB10_GPIO_Port GPIOB
#define LCD_DB01B11_Pin GPIO_PIN_11
#define LCD_DB01B11_GPIO_Port GPIOB
#define LCD_DB12_Pin GPIO_PIN_12
#define LCD_DB12_GPIO_Port GPIOB
#define LCD_DB13_Pin GPIO_PIN_13
#define LCD_DB13_GPIO_Port GPIOB
#define LCD_DB14_Pin GPIO_PIN_14
#define LCD_DB14_GPIO_Port GPIOB
#define LCD_DB15_Pin GPIO_PIN_15
#define LCD_DB15_GPIO_Port GPIOB
#define ILI9341_WR_Pin GPIO_PIN_6
#define ILI9341_WR_GPIO_Port GPIOC
#define ILI9341_DC_Pin GPIO_PIN_7
#define ILI9341_DC_GPIO_Port GPIOC
#define XPT2046_SPI_CLK_Pin GPIO_PIN_8
#define XPT2046_SPI_CLK_GPIO_Port GPIOC
#define XPT2046_SPI_CS_Pin GPIO_PIN_9
#define XPT2046_SPI_CS_GPIO_Port GPIOC
#define BoxTemp_Pin GPIO_PIN_8
#define BoxTemp_GPIO_Port GPIOA
#define XPT2046_SPI_MOSI_Pin GPIO_PIN_10
#define XPT2046_SPI_MOSI_GPIO_Port GPIOC
#define XPT2046_SPI_MISO_Pin GPIO_PIN_11
#define XPT2046_SPI_MISO_GPIO_Port GPIOC
#define XPT2046_PENIRQ_Pin GPIO_PIN_12
#define XPT2046_PENIRQ_GPIO_Port GPIOC
#define ILI9341_BK_Pin GPIO_PIN_2
#define ILI9341_BK_GPIO_Port GPIOD
#define LCD_DB03_Pin GPIO_PIN_3
#define LCD_DB03_GPIO_Port GPIOB
#define LCD_DB04_Pin GPIO_PIN_4
#define LCD_DB04_GPIO_Port GPIOB
#define LCD_DB05_Pin GPIO_PIN_5
#define LCD_DB05_GPIO_Port GPIOB
#define LCD_DB06_Pin GPIO_PIN_6
#define LCD_DB06_GPIO_Port GPIOB
#define LCD_DB07_Pin GPIO_PIN_7
#define LCD_DB07_GPIO_Port GPIOB
#define LCD_DB08_Pin GPIO_PIN_8
#define LCD_DB08_GPIO_Port GPIOB
#define LCD_DB09_Pin GPIO_PIN_9
#define LCD_DB09_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
